import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import store from './store/store';
import { Provider } from 'react-redux';
const root = ReactDOM.createRoot(document.getElementById('root'));
//把整个App中的组件放在一个路由器中,我们使用的是</BrowserRouter>
root.render(
    <Provider store={store}>
        <App / >
    </Provider>
    );

{/* store.subscribe(()=>{
    root.render(
        <App/>
    )
}) */}
    


